//
//  InstructionsCell.m
//  QoilPublic
//
//  Created by SunChao on 2018/4/19.
//  Copyright © 2018年 孙超. All rights reserved.
//

#import "InstructionsCell.h"
#import "MaintenanceModel.h"
@implementation InstructionsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.bokenLabel.hidden = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellWithData:(NSDictionary *)dic{
    
    MaintenanceModel *deviceModel = [MaintenanceModel objectFromDict:dic];
    self.device.textColor = [UIColor blackColor];
    self.repairMoney.textColor = [UIColor blackColor];
    self.bokenLabel.textColor = [UIColor blackColor];
    self.device.text = [NSString stringWithFormat:@"%@ %@",deviceModel.brand,deviceModel.model];
    self.repairMoney.text = deviceModel.repairMoney;
}
@end
